package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.library.common.GeoPoint;
import com.njtoyo.taxi.admin.mapper.master.enums.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class DesignatedCall implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "乘客ID")
    private Long customerId;


    @ApiModelProperty(value = "出发地坐标")
    private GeoPoint origin;

    @ApiModelProperty(value = "出发地名称")
    private String originName;

    @ApiModelProperty(value = "起点详细路名")
    private String originPlaceName;

    @ApiModelProperty(value = "目的地坐标")
    private GeoPoint destination;

    @ApiModelProperty(value = "目的地名称")
    private String destinationName;

    @ApiModelProperty(value = "目的地详细路名")
    private String destinationPlaceName;

    @ApiModelProperty(value = "地区ID")
    private Long areaId;
    private Long callRegionId;

    @ApiModelProperty(value = "后台运营ID")
    private Long cantonId;

    @ApiModelProperty(value = "实时单类型：0:realtime[正常实时单],1:assign[派单实时单]")
    private DesignatedRideCategory category;

    @ApiModelProperty(value = "状态0:waiting;1:pick;2:cancelled;3:covered")
    private DesignatedCallState state;

    private Long pickUpTimestamp;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @ApiModelProperty(value = "路程")
    private Integer distance;



}
